package com.jiang.demo.user.controller;

import com.jiang.demo.user.service.UserServiceInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Controller
public class UserInfoController {
    @Autowired UserServiceInfo userServiceInfo;
    @GetMapping("/user/account/info/")
    public Map<String,String> info(){
        return userServiceInfo.info();
    }
}
